Skip to content

Conversation

@JDetmar
Copy link
Owner

@JDetmar JDetmar commented Dec 13, 2025

…uGet

Copilot AI review requested due to automatic review settings December 13, 2025 05:22
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a NuGet publishing workflow and adds restore steps to the CI workflow. The publish workflow enables selective or batch publishing of NLog Azure extension packages to NuGet.org using GitHub's Trusted Publishing feature with OIDC authentication.

Key changes:

  • New publish.yml workflow that downloads artifacts from CI runs and publishes them to NuGet.org with support for dry runs
  • Added restore steps before pack and test operations in the CI workflow

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
.github/workflows/publish.yml New workflow for publishing packages to NuGet with manual triggering, artifact downloading from CI runs, and OIDC-based authentication
.github/workflows/ci.yml Added restore steps before packing and testing operations in matrix jobs

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- name: List packages to publish
run: |
echo "Packages to publish:"
find packages -name "*.nupkg" -type f | while read f; do echo " - $(basename $f)"; done
Copy link

Copilot AI Dec 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The find command will produce no output and show no clear error message if the packages directory doesn't exist or contains no .nupkg files. This could happen if artifact downloads fail or the wrong run_id is provided. Consider adding error handling to check if any packages were found and fail with a clear message if not.

Copilot uses AI. Check for mistakes.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot open a new pull request to apply changes based on this feedback

Copy link
Contributor

Copilot AI commented Dec 13, 2025

@JDetmar I've opened a new pull request, #186, to work on those changes. Once the pull request is ready, I'll request review from you.

* Initial plan

* Add error handling for package discovery in publish workflow

Co-authored-by: JDetmar <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JDetmar <[email protected]>
@JDetmar
Copy link
Owner Author

JDetmar commented Dec 13, 2025

@copilot the action is failing

Copy link
Contributor

Copilot AI commented Dec 13, 2025

@JDetmar I've opened a new pull request, #187, to work on those changes. Once the pull request is ready, I'll request review from you.

Copilot AI and others added 2 commits December 12, 2025 22:04
* Initial plan

* Fix publish.yml syntax error - move strategy matrix to proper structure

Co-authored-by: JDetmar <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: JDetmar <[email protected]>
@JDetmar JDetmar merged commit 6e6bc7e into master Dec 13, 2025
16 of 19 checks passed
@JDetmar JDetmar deleted the ci-publish-workflow branch December 13, 2025 06:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants